home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Messaging / SEPriv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.7 KB  |  74 lines  |  [TEXT/BROW]

  1. /*
  2.     File:        SEPriv.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Owned by:    Nick Pilch
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <6>     9/11/95    NP        1272294: Messaging code cleanup.
  13.          <5>     6/19/95    eeh        1246443: add PartFrameFromStandardPartToken
  14.                                     etc.
  15.          <4>     5/21/95    NP        1248898: GetUserToken, ODDescToAEDesc, etc.
  16.                                     recipe change. Add SetUserODToken for
  17.                                     setting user ODDesc in an OSLToken.
  18.          <3>     4/25/95    NP        1186795, 1237220, 1240571: Fixed whose
  19.                                     clauses by allowing swapping in count proc.
  20.          <2>     4/25/95    JP        1237938: Move kODStandardPartTokenType to
  21.                                     ODRgstry.xh
  22.          <1>     4/14/95    NP        first checked in
  23.  
  24.     To Do:
  25. */
  26.  
  27. #ifndef _SEPRIV_
  28. #define _SEPRIV_
  29.  
  30. #ifndef _CNTXTOSL_
  31. #include "CntxtOSL.h"
  32. #endif
  33.  
  34. #ifndef SOM_ODDesc_xh
  35. #include "ODDesc.xh"
  36. #endif
  37.  
  38. #if 0
  39. struct SEUserTokenContents
  40. {
  41.     ODDesc        token;
  42.     OSLContext    context;
  43. };
  44.  
  45. StuffContextIntoToken(ODOSLToken* token, OSLContext* context);
  46. OSLContext GetContextFromToken(ODOSLToken* token);
  47. #endif /* 0 */
  48.  
  49.  
  50. struct StandardPartToken
  51. {
  52.     ODFrame* fFrame;
  53.     ODPart* fPart;
  54. };
  55. typedef struct StandardPartToken StandardPartToken, *StandardPartTokenPtr;
  56.  
  57. ODFrame* FrameFromStandardPartToken(AEDesc* token);
  58. ODPart* PartFromStandardPartToken(AEDesc* token);
  59. void    PartFrameFromStandardPartToken(AEDesc* token, ODPart** part,
  60.         ODFrame** frame);
  61. ODBoolean CanBeStandardPartToken( AEDesc* token );
  62. OSErr CreateStandardPartToken( ODFrame* frame, ODPart* part, AEDesc* newToken );
  63.  
  64. ODFrame* GetDefaultRootFrameToSwapTo(Environment *ev, ODSession* session);
  65.  
  66. void SetUserODToken(OSLToken* oslToken, ODDesc* odDesc);
  67.  
  68. inline void MakeNULLDesc(AEDesc* desc)
  69. {
  70.     desc->descriptorType = typeNull;
  71.     desc->dataHandle = NULL;
  72. }
  73.  
  74. #endif /* _SEPRIV_ */